<%= form_for @fighter, :html => {:class => 'form-horizontal'} do |f| %>

<fieldset>
  <div>
    <!--%= f.hidden_field %-->
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Name</label>
    <div class="col-lg-8">
      <%= f.text_field :name, :class=>"form-control", :placeholder=>"First and last name" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Nickname</label>
    <div class="col-lg-8">
      <%= f.text_field :nickname, :class=>"form-control", :placeholder=>"Nickname for fighter" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Birthday</label>
    <div class="col-lg-8">
      <div class="input-group date" id="datepicker-dob">
        <%= f.text_field :born, :class=>"form-control", :placeholder=>"Month/Day/Year" %>
        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Gender</label>
    <div class="col-lg-8">
      <% sex = ['Male', 'Female'] %>
      <%= f.select(:gender, sex.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "-- Select fighter's gender --"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">City</label>
    <div class="col-lg-8">
      <%= f.text_field :city, :class=>"form-control", :placeholder=>"Resides in" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">State</label>
    <div class="col-lg-8">
      <%= f.select(:state, US_STATES.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "-- Select a state --"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Zip</label>
    <div class="col-lg-8">
      <%= f.text_field :zip, :class=>"form-control", :placeholder=>"Zip code" %>
    </div>
  </div>
  <!--div class="form-group">
    <label class="col-lg-3 control-label">Country</label>
    <div class="col-lg-8">
      <!%= f.text_field :country, :class=>"form-control", :placeholder=>"Country" %>
    </div>
  </div-->
  <div class="form-group">
    <label class="col-lg-3 control-label">Phone</label>
    <div class="col-lg-8">
      <%= f.text_field :phone, :class=>"form-control", :placeholder=>"Contact number" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Weight</label>
    <div class="col-lg-8">
      <%= f.text_field :weight, :class=>"form-control", :placeholder=>"In lbs" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Height</label>
    <div class="form-group col-lg-4" style="margin-left:0px;margin-bottom:0px;">
      <%= f.text_field :height_feet, :class=>"form-control", :placeholder=>"Feet" %>
    </div>
    <div class="form-group col-lg-4" style="margin-left:15px;margin-bottom:0px;">
      <%= f.text_field :height_inches, :class=>"form-control", :placeholder=>"Inches" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Style</label>
    <div class="col-lg-8">
      <%= f.select(:skill_style_1, MA_STYLES.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "-- Select a martial art style trainned --"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Trained</label>
    <div class="col-lg-8">
      <%= f.text_field :skill_trained_1, :class=>"form-control", :placeholder=>"Yeas of training" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Belt</label>
    <div class="col-lg-8">
      <%= f.select(:skill_belt_1, MA_BELTS.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "-- Select the highest belt owned --"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Style</label>
    <div class="col-lg-8">
      <%= f.select(:skill_style_2, MA_STYLES.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "-- Select a martial art style trainned --"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Trained</label>
    <div class="col-lg-8">
      <%= f.text_field :skill_trained_2, :class=>"form-control", :placeholder=>"Yeas of training" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-3 control-label">Belt</label>
    <div class="col-lg-8">
      <%= f.select(:skill_belt_2, MA_BELTS.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "-- Select the highest belt owned --"}, {:class => "form-control"} ) %>
    </div>
  </div>

  <div class="form-group">
    <div class="col-lg-8 col-lg-offset-3">
      <div class="checkbox">
        <label>
          <input id="fighter_disclaim_accept" name="fighter[disclaim_accept]" type="checkbox" value="1">
          Accept the 
          <%= link_to "Terms and Policies", "#modal-disclaimer", :data => {:toggle=>"modal"} %>
        </label>
      </div>
    </div> 
  </div>
  <div class="form-group">
    <div class="col-lg-5 col-lg-offset-3" style="margin-top:10px;">
      <%= f.submit "Create fighter", :class=>"btn btn-lg btn-success" %>
    </div>
  </div>
</fieldset>
<% end %>
